<template>
  <div class="student_card_container">
    <div v-for="blog in blogslist" :key="blog" class="student_card">
      <div>
        <el-card style="border-radius:10px">
          <div slot="header" class="card_head">
            <span>{{ blog.title }}</span>
            <el-button style="float: right; padding: 3px 0" type="text">
              <a :href="blog.blogUrl" target="_blank" class="card_head">阅读博客</a>
            </el-button>
          </div>
          <div class="card_content">
            <span>作者：{{ blog.name }}</span>
            <br/>
            <span>I D ：{{ blog.userBlogId }}</span>
            <br/>
            <span>学校：{{ blog.school }}</span>
            <br/>
            <span>奖项：{{ blog.awardWinning }}</span>
            <br/>
          </div>
        </el-card>
      </div>
    </div>
  </div>
</template>

<script>
import api from "network/api";

export default {
  name: "Student",
  data() {
    return {
      blogslist: []
    };
  },
  getStudentColumnList() {
  },
  mounted() {
    api.getStudentColumnList().then(response => {
      this.blogslist = response.data;
    });
    console.log(this.blogslist);
  }
};
</script>

<style lang="less" scoped>
.student_card_container {
  width: 80%;
  margin: auto;
  margin-bottom: 10px;
}

.student_card {
  margin-top: 10px;
  border-color: aqua;

  .card_head {
    font-size: 20px;
  }

  .card_content {
    font-size: 18px;
    margin-left: 20px;
  }
}
</style>
